package Model
{
	import SharedCloud.SyncedObject;
	
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	
	import mx.collections.ArrayCollection;
	
	[Bindable]
	[Event(name="DeleteStory", type="flash.events.Event")]
	public class Story extends SyncedObject
	{
		public var title:String = "";
		public var x:int = 0;
		public var y:int = 0;
		public var listIndex:int;
		public var description:String = "";
		public var finishedIn:String;
		
		public var comments:ArrayCollection = new ArrayCollection();
		public var tasks:ArrayCollection = new ArrayCollection();
		
		public function remove():void
		{
			IEventDispatcher(this).dispatchEvent(new Event("DeleteStory"));
		}
	}
}